<template>
  <div>
    <h1>用户管理</h1>
  </div>
</template>

<script>
  import { login } from '../api/user'

  export default {
    name: 'Users',
    created () {
      this.getUserList();
    },
    methods: {
      getUserList () {
         login().then(res=>{
            console.log(res.data)
         }).catch(error=>{

         })
      }
    },
  }
</script>

<style scoped>

</style>
